package com.kuang.demo.controller;

import com.kuang.demo.bean.BaseRespVo;
import com.kuang.demo.bo.zzy.LogBo.ListPageLimit2;
import com.kuang.demo.bo.zzy.TotalItem;
import com.kuang.demo.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/log")
public class LogController {

    @Autowired
    LogService logService;

    @RequestMapping("/list")
    public BaseRespVo zzy1(ListPageLimit2 listPageLimit){
        TotalItem totalItem = logService.selectLogList(listPageLimit);

        return BaseRespVo.ok(totalItem);
    }
}
